@import '~@common/css/_variables.scss';

.control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;

  .left {
    width: 250px;
    max-width: 250px;

    .content {
      display: flex;
    }

    img {
      width: 48px;
      height: 48px;
      min-width: 48px;
      margin: 0 12px;
      border-radius: 4px;
    }

    .info {
      display: flex;
      flex-direction: column;
      justify-content: space-around;
      width: calc(100% - 72px);

      div {
        width: 100%;
        overflow: hidden;
        color: #313132;
        text-overflow: ellipsis;
        white-space: nowrap;

        &:first-child {
          display: flex;
          font-size: 14px;
          align-items: center;

          p {
            &:first-child {
              overflow: hidden;
              text-overflow: ellipsis;
              white-space: nowrap;
            }

            &:last-child {
              width: 20px;
              height: 20px;
              min-width: 20px;
              margin-left: 10px;
              font-size: 20px;
              cursor: pointer;
            }
          }
        }

        &:last-child {
          overflow: inherit;
          font-size: 12px;

          span {
            &:not(:first-child) {
              padding-left: 6px;
            }

            &:hover {
              text-decoration: underline;
              cursor: pointer;
            }
          }
        }
      }
    }
  }

  .center {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    width: 416px;

    .btn_group {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      font-size: 10px;

      li {
        display: flex;
        width: 24px;
        height: 24px;
        margin: 0 15px;
        color: #000;
        cursor: pointer;
        border-radius: 50%;
        align-items: center;
        justify-content: center;

        &.activeLrc {
          color: $color !important;
        }

        &:hover {
          color: $color;
        }

        &:nth-child(3) {
          width: 36px;
          height: 36px;
          font-size: 16px;
          background-color: #ebebed;
        }
      }
    }

    .progress_box {
      display: flex;
      width: 100%;
      margin-top: 6px;
      align-items: center;
      justify-content: space-between;

      .time {
        font-size: 11px;
        color: #9f9f9f;
      }

      .progress {
        width: 100%;
        margin: 0 6px;

        :global {
          .ant-slider {
            &:hover {
              .ant-slider-rail,
              .ant-slider-step,
              .ant-slider-track {
                height: 5px;
                cursor: pointer;
              }
            }

            .ant-slider-rail {
              cursor: pointer;
              background-color: #cdcdcd;
            }
          }
        }
      }
    }
  }

  .right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 252px;
    padding-right: 20px;

    .quality {
      font-size: 20px;
      color: #373737;
      cursor: pointer;
    }

    .volume {
      display: flex;
      align-items: center;
      width: 56px;
      margin: 0 20px 0 8px;
    }

    .list {
      font-size: 24px;
      color: #373737;
    }
  }

  :global {
    .ant-slider {
      display: flex;
      width: 100%;
      height: 10px;
      padding: 0;
      margin: 0;
      align-items: center;

      &:hover {
        .ant-slider-handle {
          opacity: 1;
        }
      }

      .ant-slider-rail,
      .ant-slider-step,
      .ant-slider-track {
        height: 3px;
        cursor: pointer;
      }

      .ant-slider-rail {
        cursor: pointer;
        background-color: #e5e5e5;
      }

      .ant-slider-track {
        background-color: $color;
      }

      .ant-slider-handle {
        width: 9px;
        height: 9px;
        margin: 0;
        background-color: $color;
        border: none;
        opacity: 1;

        &:focus {
          box-shadow: none;
        }
      }
    }
  }

  .lrc {
    position: fixed;
    right: 0;
    z-index: 5;
    width: calc(100% - 200px);
    overflow: hidden;
    background-color: rgba($color: #f5f5f6, $alpha: 0.9);
    border-top: 1px solid #e1e1e1;
    transition: all 0.5s ease;

    .content {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      transition: all ease 0.5s;

      li {
        height: 30px !important;
        font-size: 12px;
        line-height: 30px;
        text-align: center;
      }
    }
  }

  .active {
    color: $color;
  }

  .noLyric {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
  }
}
